{extend name="$_tpl_public_layout_danceadmin"/}


{block name="breadcrumb"}
<ol class="breadcrumb">
	<li class="breadcrumb-item"><a href="{:url('admin/index/index')}">{:config('system.site_title')}</a></li>
	<li class="breadcrumb-item"><a href="{:url('mobmall_manage/user/index')}">{$sideName}</a></li>
</ol>
{/block}


{block name="pageheader"}
{$sideName}
{/block}


{block name="content"}
<div class="card">
	<div class="card-body">
		<form action="{:url('mobmall_manage/user/doAdd')}" method="post" enctype="multipart/form-data" class="form-horizontal J_ajaxForm">
			<input type="hidden" name="id" value="{$id}" />
			<div class="form-group row">
				<label class="col-md-2 control-label">用户名</label>
				<div class="col-md-5">
					<input type="text" name="data[username]" value="{$info['username']}" class="form-control" />
				</div>
				<div class="col-md-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-sm-2 control-label">状态</label>
				<div class="col-sm-10">
					<?php echo isOpenRadioHtmlB('data[status]', $info['status']); ?>
				</div>
			</div>
			<div class="form-group row">
				<label class="col-md-2 control-label">姓名</label>
				<div class="col-md-5">
					<input type="text" name="data[realname]" value="{$info['realname']}" class="form-control" />
				</div>
				<div class="col-md-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-md-2 control-label">手机号</label>
				<div class="col-md-5">
					<input type="text" name="data[mobile]" value="{$info['mobile']}" class="form-control" />
				</div>
				<div class="col-md-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-md-2 control-label">密码</label>
				<div class="col-md-5">
					<input type="text" name="data[password]" class="form-control" />
				</div>
				<div class="col-md-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-md-2 control-label">备注</label>
				<div class="col-md-5">
					<textarea class="form-control" name="data[remark]" rows="5">{$info['remark']}</textarea>
				</div>
				<div class="col-md-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-md-2 control-label">头像</label>
				<div class="col-md-4">
					<div class="upload-control">
						<input type="file" name="avatar" class="J_uploadfile" />
					</div>
					<div class="upload-show J_preview">
						<img src="{$info['avatar']}" class="upload-img-sm" onerror="Javascript:this.src='/static/danceAdmin/images/nopic.png';" />
					</div>
				</div>
				<div class="col-md-5"></div>
			</div>
			<div class="clearfix form-actions">
				<div class="offset-md-2 col-sm-10">
					<button type="submit" class="btn btn-primary btn-sm J_ajaxSubmit">保存修改</button>
				</div>
			</div>
		</form>
	</div>
</div>
{/block}


{block name="script"}
<!-- 上传图片展示 -->
<script type="text/javascript" src="__STATIC__/dancewidgets/uploadPreview/uploadPreview.js"></script>

{/block}